package com.hinnotek.amoeba.adapters.old

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hinnotek.amoeba.bean.old.StatisticalRDProjectBean
import com.hinnotek.amoeba.R

/**
 * "通知"列表适配器
 * @author 张洋
 * @since 2020-10-7
 */
class StatisticalRDProjectAdapter : BaseQuickAdapter<StatisticalRDProjectBean,
        BaseViewHolder>(R.layout.item_statistical_rd_project) {

    override fun convert(holder: BaseViewHolder, item: StatisticalRDProjectBean) {
        holder.setText(R.id.tv_create_project, item.projectName)
        holder.setText(R.id.tv_labor_cost, item.totalPerson)
        holder.setText(R.id.tv_reimbursement_cost, item.totalReimburse)
        holder.setText(R.id.tv_payment_cost, item.totalPay)
        holder.setText(R.id.tv_purchase_cost, item.totalPurchase)
        holder.setText(R.id.tv_other_cost, item.totalOther)
        holder.setText(R.id.tv_total_cost, item.allMoney)
        holder.setText(R.id.tv_remainder_cost, item.surplusMoney)
    }

}